package com.fm.webreader.html;

import java.util.LinkedList;
import java.util.List;

public class Chapter {
	private String name;
	private Chapter parent;
	private List<Object> contents = new LinkedList<>();

	public Chapter(Chapter parent) {
		this(null, parent);
	}

	public Chapter(String name, Chapter parent) {
		this.name = name;
		this.parent = parent;
	}

	public void addContent(Object info) {
		contents.add(info);
	}

	public List<Object> getContents() {
		return contents;
	}

	public Chapter getParent() {
		return parent;
	}
}
